home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / hf / ctutils / ct8.h < prev    next >
C/C++ Source or Header  |  1992-05-09  |  4KB  |  134 lines

  1. // this is the binary file format for CT version 8
  2. // the first 1024 bytes are the header (struct restart_header)
  3. // the remainder of the file is in 50 byte rcords  (struct loag_data)
  4.  
  5. typedef unsigned char   uchar;
  6. typedef unsigned int    uint;
  7. typedef unsigned long   ulong;
  8. typedef unsigned short  ushort;
  9.  
  10. struct restart_header       // info in front of log data in .BIN file 
  11. {
  12.    char     contest_title[32];
  13.    char     version_str[12];
  14.    short    category_int;
  15.    short    tx_pwr;
  16.    char     call[32];
  17.    char     name[32];
  18.    char     address[64];
  19.    char     town[32];
  20.    char     state[8];
  21.    char     data[32];
  22.    struct   comm_data      // comm port setup info 
  23.    {
  24.       char  device;
  25.       char  baud;          // 0 = 1200, 1 = 2400, 2 = 4800, 3 = 9600, 4 = 19.2
  26.    } comm[4];
  27.    uchar    contest;
  28.    uchar    mode;
  29.    uchar    category;
  30.    uchar    tnc;
  31.    uchar    cw_port;
  32.    uchar    dvk_port;
  33.    uchar    station;
  34.    uchar    radio;
  35.    struct   
  36.    {
  37.       uchar no_work_dupe
  38.       uchar m_stn
  39.       uchar post
  40.       uchar beep
  41.       uchar band_rate
  42.       uchar sound
  43.       uchar correct
  44.       uchar cw_abbrev
  45.       uchar autosav
  46.       uchar nocompress
  47.       uchar see_warc
  48.       uchar print
  49.       uchar rpt
  50.       uchar kw_right
  51.       uchar spare[16
  52.    } flags;
  53.    char     cq_msg[64];
  54.    char     qrz_msg[64];
  55.    char     ex_msg[64];
  56.    char     zip[16];
  57.    char     zone[8];
  58.    char     F6_text[64];
  59.    char     F7_text[64];
  60.    char     club[64];
  61.    struct   ss_stuff
  62.    {
  63.       char  prec[4];
  64.       char  chk[4];
  65.    } ss;
  66.  
  67.    struct   fd_stuff
  68.    {
  69.       uchar    ep_bonus       ;
  70.       uchar    pr_bonus       ;
  71.       uchar    loc_bonus      ;
  72.       uchar    info_bonus     ;
  73.       uchar    msg_bonus      ;
  74.       uchar    sat_bonus      ;
  75.       uchar    nat_bonus      ;
  76.       uchar    w1aw_bonus     ;
  77.       uchar    pkt_bonus      ;
  78.       uchar    power          ;
  79.       uchar    tx_count       ;
  80.       char     category       ;
  81.       uchar    tfc_bonus      ;
  82.       uchar    spare[3]       ;
  83.    } fd;
  84.    char     my_grid[8];
  85.    char     sec[8];
  86.    char     dupe_msg[32];
  87.    struct   dvp_stuff
  88.    {
  89.       uchar ingain;
  90.       uchar outgain;
  91.       uchar onair;
  92.       uchar mon;
  93.       char  ram_disk;
  94.       uchar ptt;
  95.       uchar backcopy;
  96.       uchar spare;
  97.       ushort clipping_pt;
  98.       ushort rpt_delay;
  99.       long  auto_space;
  100.       char  dvp_spare[16];
  101.    } dvp;
  102.    char     last_op[16];
  103.    short    off_thresh;
  104.    char     cont;
  105.    char     spare[199];
  106. };
  107.  
  108. struct log_data               // binary records kept in .BIN file 
  109. {
  110.    char     call[16];         // callsign of station worked 
  111.    char     info[8];          // received info: zone, power, grid, sec, etc
  112.    uchar    band;             // 1 = 160, 2 = 80 ... 6 = 10 
  113.    uchar    mode;             // 0 = CW, 1 = SSB, 2 = RTTY
  114.    uchar    status;           // split or transceive, which VFO active 
  115.    uchar    stn_num;          // tag identifying computer this logged on 
  116.    short    rst;              // received RST, sent is always 59 or 599 
  117.    short    serial;           // received serial number in SS
  118.    struct   fd_info 
  119.    {
  120.       uchar    tx_count;      // Tx count
  121.       uchar    category;
  122.    } fd;
  123.    ulong    freq[2];          // frequency read from VFO A and B 
  124.    long     time;             // UNIX time: seconds since Jan 1, 1970 
  125.    union {
  126.    uchar    novice;           // novice in 10 mtr test
  127.    uchar    check;            // check in SS
  128.    short    tx_pwr;           // for ARRL DX test outside W/VE
  129.    short    qtc_num;};        // number of qtc record this sent to (WAE)
  130.    uchar    qsl_sent;         // qsl sent flag
  131. };
  132.  
  133.  
  134.